package com.chixing.day12_date_factory;

public class LocationTest {
    public static void main(String[] args) {
        Location<Integer,Double> location = new Location<>();
        location.setX(10);
        location.setY(23.4);
        System.out.println(location);

        Location<String,Float> location1 = new Location<>("打击",44.5f);
        System.out.println(location1);

        Location<String,Integer> location2 = new Location<>("人口",5224);
        System.out.println(location2);

        Location<Integer,Float> location3 = new Location<>(123,45.5f);
        System.out.println(location3);

        Location<String,Float> location4 = new Location<>("水果",55.1f);
        System.out.println(location4);
    }
}
